const { override, fixBabelImports, addWebpackAlias, addPostcssPlugins,addDecoratorsLegacy} = require('customize-cra')
const path =require('path')
const pxtorem = require('postcss-pxtorem')
module.exports = override(
    fixBabelImports('import', {
      libraryName: 'antd-mobile',
      style: 'css'
    }),
    addWebpackAlias({
      assets:path.resolve(__dirname,'./src/assets')
    }),
    addPostcssPlugins(
      [
        pxtorem({
          rootValue: 32,
          propList: ['*']
        })
      ]
    ),
    addDecoratorsLegacy()
  )